package ma.ensao.evalmetrics.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

//Mapping de la table des resultats des metrics calculé par methode et le bean result
@Entity
@Table(name ="methodresult")
public class ResultMethod {

	private Long  id;
	private int idtest;
	private Long idProjet;
	private String Classe;
	private String type;
	private String namemethode;
	private float Vg;
	private int Sloc;
	private java.util.Date date = new java.util.Date();
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	 public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "idProjet")
	public Long getIdProjet() {
		return idProjet;
	}
	public void setIdProjet(Long idProjet) {
		this.idProjet = idProjet;
	}
	@Column(name = "idtest")
	public int getIdtest() {
		return idtest;
	}
	public void setIdtest(int idtest) {
		this.idtest = idtest;
	}
	@Column(name = "VG")
	public float getVg() {
		return Vg;
	}
	public void setVg(float vg) {
		Vg = vg;
	}

@Column(name = "classe")
	public String getClasse() {
		return Classe;
	}
	public void setClasse(String classe) {
		Classe = classe;
	}
	@Column(name = "namemethode")
	public String getNamemethode() {
		return namemethode;
	}
	public void setNamemethode(String namemethode) {
		this.namemethode = namemethode;
	}
	
	@Column(name = "SLOC")
	public int getSloc() {
		return Sloc;
	}
	public void setSloc(int sloc) {
		Sloc = sloc;
	}
	
	@Column(name = "type")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	@Column(name = "date")
	public java.util.Date getDate() {
		return date;
	}
	public void setDate(java.util.Date date) {
		this.date = date;
	}
	
}
